package cn.bsuc.crm.vo;

import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

/**
 * @author : zhuoyuan
 * @date : 2022/10/18 16:08
 * @description :
 */
@Data
public class ExportLogVO {

    @ExcelProperty(value = "日志编号",index = 0)
    private Integer id;

    @ExcelProperty(value = "系统模块",index = 1)
    private String description;

    @ExcelProperty(value = "操作类型",index = 2)
    private String type;

    @ExcelProperty(value = "操作人员",index = 3)
    private String createMan;


    @ExcelProperty(value = "日志编号",index = 4)
    private String method;


    @ExcelProperty(value = "操作状态",index = 5)
    private String exceptionCode;

    @ExcelProperty(value = "状态描述",index = 6)
    private String exceptionDetail;

    @ExcelProperty(value = "操作日期",index = 7)
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") // 表示返回时间类型
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") // 表示接收时间类型
    private LocalDateTime createDate;



}
